﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BillList.aspx.cs" Inherits="pages_bill_BillList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>结算记录</title>
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.4.2.js"></script>
    <script type="text/javascript" src="../../scripts/system/member.js"></script>
    <link rel="stylesheet" type="text/css" href="../../css/main.css"/>
</head>
<body>
    <form id="form1" runat="server">
        <table width="730" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="34" style="background-image:../../images/bj2.gif"><strong>&nbsp;&nbsp;&nbsp;&nbsp;结算记录</strong></td>
            </tr>
            <tr><td>&nbsp;</td></tr>
            <tr>
                <td align="center">
                    <table width="577" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr><td>&nbsp;</td></tr>
                        <tr>
                            <td>
                                <asp:ObjectDataSource ID="SourceBill" runat="server" 
                                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetBills" 
                                    TypeName="BillDB"></asp:ObjectDataSource>
                                <asp:GridView ID="BillGridView" runat="server" AllowPaging="True" 
                                    AutoGenerateColumns="False" DataSourceID="SourceBill" BackColor="#DEBA84" 
                                    BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                                    CellSpacing="2">
                                    <Columns>
                                        <asp:BoundField DataField="BillId" HeaderText="BillId" SortExpression="BillId" 
                                            Visible="False" />
                                        <asp:BoundField DataField="CustomerName" HeaderText="客户名" 
                                            SortExpression="CustomerName">
                                        <HeaderStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SpendItemName" HeaderText="消费项目" 
                                            SortExpression="SpendItemName">
                                        <HeaderStyle Width="250px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SpendTypeName" HeaderText="消费类型" 
                                            SortExpression="SpendTypeName">
                                        <HeaderStyle Width="200px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SpendItemPrice" HeaderText="单价" 
                                            SortExpression="SpendItemPrice">
                                        <HeaderStyle Width="80px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SpendItemCount" HeaderText="消费数量" 
                                            SortExpression="SpendItemCount">
                                        <HeaderStyle Width="50px" />
                                        </asp:BoundField>
                                        <asp:TemplateField HeaderText="总价">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" 
                                                    Text='<%# ((BillDetail)Container.DataItem).SpendItemCount * ((BillDetail)Container.DataItem).SpendItemPrice%>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle Width="80px" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Time" DataFormatString="{0:yyyy-MM-dd}" 
                                            HeaderText="消费时间" SortExpression="Time">
                                        <HeaderStyle Width="120px" />
                                        </asp:BoundField>
                                    </Columns>
                                    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                    <SortedAscendingCellStyle BackColor="#FFF1D4" />
                                    <SortedAscendingHeaderStyle BackColor="#B95C30" />
                                    <SortedDescendingCellStyle BackColor="#F1E5CE" />
                                    <SortedDescendingHeaderStyle BackColor="#93451F" />
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr><td>&nbsp;</td></tr>
                    </table>
                </td>
            </tr>
            <tr><td>&nbsp;</td></tr>
        </table>
    </form>
</body>
</html>
